Ext.define('Admin.view.user.List', {
    extend: 'Admin.view.PageList',
    alias: 'widget.Userlist',
    
    viewModel: {
        type: 'userlist'
    },
    tbar: ['->',{
        text: '录入',
        handler: 'onNew',
        hidden:true        	
    },{
        text: '删除',
        handler: 'onRemove',
        hidden:true
    }
    ],

    columns: [
      	{text:'id',dataIndex:'id',filter:'number'},
		{text:'登陆用户名',dataIndex:'loginName',filter:'string'},
		{text:'姓名1111',dataIndex:'name',filter:'string'},
		//{text:'plainPassword',dataIndex:'plainPassword',filter:'string'},
		{text:'密码',dataIndex:'password',filter:'string'},
		//{text:'salt',dataIndex:'salt',filter:'string'},
		{text:'角色',dataIndex:'roles',filter:'string'},
		{text:'注册时间',dataIndex:'registerDate', xtype: 'datecolumn',filter:true},
		{text:'邮箱',dataIndex:'email',filter:'string'},
		{text:'状态',dataIndex:'status',renderer:function(v,r,rec, rowIndex, columnIndex, store){
		 	return v?'禁用':'启用';
		}},
		{text:'所属机构',dataIndex:'ssjg', filter: 'number'},
		{text:'最近登录时间',dataIndex:'dt_lastlogin', xtype: 'datecolumn',filter:true}
    ],
    onDestroy: function () {
    	me.callParent();
    }
 });


